﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DataAccess
{
    /// <summary>
    /// 养宠知识表
    /// </summary>
    [Table("petknowledge")]
    public class PetKnowledge
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public long id { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string? title { get; set; }

        /// <summary>
        /// 副标题
        /// </summary>
        public string? subtitle { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        public string? content { get; set; }

        /// <summary>
        /// 封面图片地址
        /// </summary>
        public string? coverimgsrc { get; set; }

        /// <summary>
        /// 其他图片地址，限3张
        /// </summary>
        public string? otherimgsrc { get; set; }

        /// <summary>
        /// 视频地址
        /// </summary>
        public string? videosrc { get; set; }

        /// <summary>
        /// 首页推荐
        /// </summary>
        public bool isrecommended { get; set; }

        /// <summary>
        /// 阅读次数
        /// </summary>
        public int readcount { get; set; }

        /// <summary>
        /// 知识所属物种id
        /// </summary>
        public int? speciesid { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime updatetime { get; set; }
    }
}
